package com.weseal.form;

import com.weseal.domain.UserPartDate;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Date;


/**
 * @author
 */

public class UserPartDateForm implements Serializable {

	private static final long serialVersionUID = 4500240868416970768L;
	private Long id;
	private Long userId;
	private Long partDateId;
	private Integer score;
	private String note;
	private Date createTime;
	private Date updateTime;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getPartDateId() {
		return partDateId;
	}

	public void setPartDateId(Long partDateId) {
		this.partDateId = partDateId;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}


	public UserPartDate convert2Domain() {
		UserPartDate domain = new UserPartDate();
		BeanUtils.copyProperties(this, domain);
		return domain;
	}

}